import { Module,DynamicModule } from '@nestjs/common';
import { NestLogService } from './services/nest-log/nest-log.service';

@Module({})
export class NestLogModule {
  static register(prefixx:string):DynamicModule{
    return {
       module:NestLogModule,
       providers:[
        NestLogService,
        {
          provide:'PREFIX',
          useValue:prefixx
        }
       ],
       exports:[NestLogService]
    }
  }
}
